home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / profile / nsIProfileUnlocker.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIProfileUnlocker.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIProfileUnlocker_h__
  6. #define __gen_nsIProfileUnlocker_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIProfileUnlocker */
  19. #define NS_IPROFILEUNLOCKER_IID_STR "08923af1-e7a3-4fae-ba02-128502193994"
  20.  
  21. #define NS_IPROFILEUNLOCKER_IID \
  22.   {0x08923af1, 0xe7a3, 0x4fae, \
  23.     { 0xba, 0x02, 0x12, 0x85, 0x02, 0x19, 0x39, 0x94 }}
  24.  
  25. class NS_NO_VTABLE nsIProfileUnlocker : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPROFILEUNLOCKER_IID)
  29.  
  30.   enum { ATTEMPT_QUIT = 0U };
  31.  
  32.   enum { FORCE_QUIT = 1U };
  33.  
  34.   /**
  35.    * Try to unlock the specified profile by attempting or forcing the
  36.    * process that currently holds the lock to quit.
  37.    *
  38.    * @param aSeverity either ATTEMPT_QUIT or FORCE_QUIT
  39.    * @throws NS_ERROR_FAILURE if unlocking failed.
  40.    */
  41.   /* void unlock (in unsigned long aSeverity); */
  42.   NS_IMETHOD Unlock(PRUint32 aSeverity) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIPROFILEUNLOCKER \
  48.   NS_IMETHOD Unlock(PRUint32 aSeverity); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIPROFILEUNLOCKER(_to) \
  52.   NS_IMETHOD Unlock(PRUint32 aSeverity) { return _to Unlock(aSeverity); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSIPROFILEUNLOCKER(_to) \
  56.   NS_IMETHOD Unlock(PRUint32 aSeverity) { return !_to ? NS_ERROR_NULL_POINTER : _to->Unlock(aSeverity); } 
  57.  
  58. #if 0
  59. /* Use the code below as a template for the implementation class for this interface. */
  60.  
  61. /* Header file */
  62. class nsProfileUnlocker : public nsIProfileUnlocker
  63. {
  64. public:
  65.   NS_DECL_ISUPPORTS
  66.   NS_DECL_NSIPROFILEUNLOCKER
  67.  
  68.   nsProfileUnlocker();
  69.  
  70. private:
  71.   ~nsProfileUnlocker();
  72.  
  73. protected:
  74.   /* additional members */
  75. };
  76.  
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(nsProfileUnlocker, nsIProfileUnlocker)
  79.  
  80. nsProfileUnlocker::nsProfileUnlocker()
  81. {
  82.   /* member initializers and constructor code */
  83. }
  84.  
  85. nsProfileUnlocker::~nsProfileUnlocker()
  86. {
  87.   /* destructor code */
  88. }
  89.  
  90. /* void unlock (in unsigned long aSeverity); */
  91. NS_IMETHODIMP nsProfileUnlocker::Unlock(PRUint32 aSeverity)
  92. {
  93.     return NS_ERROR_NOT_IMPLEMENTED;
  94. }
  95.  
  96. /* End of implementation class template. */
  97. #endif
  98.  
  99.  
  100. #endif /* __gen_nsIProfileUnlocker_h__ */
  101.